<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>div标签和span标签</title>
    <style>
      span {
        /* 所有的独占一行 */
        /* display: block; */
        display: inline-block;
      }
      div {
        /* 不独占一行 */
        display: inline-block;
      }

      .container {
        display: flex;
        /* 列 */
        /* flex-direction: column; */
        flex-direction: row;
        justify-content: space-around;
      }
      .child {
        width: 100px;
        height: 100px;
        background-color: pink;
        display: flex;
        align-items: center;
        /* line-height: 100px; */
        justify-content: center;
      }
    </style>
  </head>
  <body>
    <div>独占一行</div>
    <span>我不独占一行</span>
    <div>和span占一行,独占一行</div>
    <span>我不独占一行</span>
    <span>在一行</span>
    <hr>
    <div class="container">
        <div class="child">测试</div>
        <div class="child">测试</div>
        <div class="child">测试</div>
    </div>
  </body>
</html>
